@if (widget().type === 'widgetA') {
  <app-widget-a [widget]="widget()" [resizeEvent]="resizeEvent()"></app-widget-a>
}
@if (widget().type === 'widgetB') {
  <app-widget-b [widget]="widget()" [resizeEvent]="resizeEvent()"></app-widget-b>
}
@if (widget().type === 'widgetC') {
  <app-widget-c [widget]="widget()" [resizeEvent]="resizeEvent()"></app-widget-c>
}
